/**
 * Created by moon on 2016/12/22
 */
define(["business/services/constant"], function (constant) {	
	var userhost = constant.config.BASEURL_USER;//user host
	var userurl = constant.config.CONSTANT_USER;//
	
	var personurl = constant.config.CONSTANT_PERSON//person url
	
	var citiurl = constant.config.CONSTANT_Map;//citi
	
	var databasehost = constant.config.BASEURL_DATABASE;//host
	var databaseurl = constant.config.CONSTANT_CATEGORY;//
	
	var elink_libraryhost = constant.config.BASEURL_LIBRARY;
	var elink_libraryurl = constant.config.CONSTANT_stud;
	
	var elink_videohost = constant.config.BASEURL_VIDEO;
	var elink_videourl = constant.config.CONSTANT_PLANNER;
	var coinAPI = "elink_user/api/coin";
	
	
	
    return {
        getuserHttpService:function(requestion){
            return constant.httpSend(userhost, userurl,requestion);
        },
        getpersonHttpService:function(requestion){
            return constant.httpSend(userhost, personurl,requestion);
        },
		getcitiHttpService:function(requestion) {
			return constant.httpSend(userhost, citiurl, requestion);
		},
		getdataHttpService:function(requestion) {
			return constant.httpSend(databasehost, databaseurl, requestion);
		},
		getlibHttpService:function(requestion) {
			return constant.httpSend(elink_libraryhost, elink_libraryurl, requestion);
		},
		getvideoHttpService:function(requestion) {
			return constant.httpSend(elink_videohost, elink_videourl, requestion);
		},
		coinHttpService:function(requestion){
			return constant.httpSend(userhost,coinAPI, requestion);
		}
    }
});
